package com.bzxy.monitor.other;

import java.util.Comparator;

import com.bzxy.monitor.model.DeviceNode;

public class DeviceNodeIDComparator implements Comparator<DeviceNode> {
	@Override
	public int compare(DeviceNode arg0, DeviceNode arg1) {
		int id0 = Integer.parseInt(arg0.id);
		int id1 = Integer.parseInt(arg1.id);
		return (id0 < id1 ? -1 : (id0 == id1 ? 0 : 1) );		
	}
}
